<%--
  Created by IntelliJ IDEA.
  User: 26056
  Date: 2021/5/5
  Time: 15:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>注册</title>
</head>
<body>

<script>
    window.onload = function(){
        document.getElementById("img").onclick = function(){
            this.src="/CheckCode?time="+new Date().getTime();
        }
    }
</script>

<h2>注册界面</h2>

<form action="/register" method="post">
    <table>
        <tr>
            <td>邮箱地址</td>
            <td><input type="email" name="email" placeholder="每个邮箱只能注册一次哦"></td>
        </tr>
        <tr>
            <td>用户名</td>
            <td><input type="text" name="username" placeholder="尊姓大名~"></td>
        </tr>
        <tr>
            <td>密码</td>
            <td><input type="password" name="password" placeholder="一定要够安全！"></td>
        </tr>
        <tr>
            <td>性别</td>
            <td><input type="radio" name="gender" value="男">男</td>
            <td><input type="radio" name="gender" value="女">女</td>
        </tr>
        <tr>
            <td>年龄</td>
            <td><input type="number" name="age" placeholder="您的年龄"></td>
        </tr>
        <tr>
            <td>身高</td>
            <td><input type="number" name="height" placeholder="如实填写哦！"></td>
        </tr>
        <tr>
            <td>体重</td>
            <td><input type="number" name="weight" placeholder="如实填写哦~"></td>
        </tr>
        <tr>
            <td colspan="2"><input type="submit" value="注册"></td>
        </tr>
    </table>
</form>

<div><%=request.getAttribute("cc_error") == null ? "" : request.getAttribute("cc_error")%></div>

</body>
</html>
